<!DOCTYPE html>
<html>
    <head>
        <title>Meeting会议管理系统</title>
        <link rel="stylesheet" href="/styles/common.css"/>
    </head>
    <body>
        <#include 'top.ftl'>
        <div class="page-body">
            <#include 'leftmenu.ftl'>
            <div class="page-content">
                <div class="content-nav">
                    会议预定 > 修改会议室信息
                </div>
                <form action="/updateRoomDetail">
                    <fieldset>
                        <legend>会议室信息</legend>
                        <#if mr??>
                        <table class="formtable">
                            <tr>
                                <td>门牌号:</td>
                                <td>
                                    <input id="roomnumber" name="roomnum" type="text" value="${mr.roomnum}" maxlength="10"/>
                                </td>
                            </tr>
                            <tr>
                                <td>会议室名称:</td>
                                <td>
                                    <input id="capacity" name="roomname" type="text" value="${mr.roomname}" maxlength="20"/>
                                </td>
                            </tr>
                            <tr>
                                <td>最多容纳人数：</td>
                                <td>
                                    <input id="roomcapacity" name="capacity" type="text" value="${mr.capacity}"/>
                                </td>
                            </tr>
                            <tr>
                                <td>当前状态：</td>
                                <td>
                                    <#if mr.status==0>
                                        <input type="radio" id="status" name="status" checked="checked" value="0"/><label for="status">启用</label>
                                        <input type="radio" id="status" name="status"  value="1"/><label for="status">已占用</label>
                                    <#else>
                                        <input type="radio" id="status" name="status"  value="0"/><label for="status">启用</label>
                                        <input type="radio" id="status" name="status" checked="checked"  value="1"/><label for="status">已占用</label>
                                    </#if>
                                </td>
                            </tr>
                            <tr>
                                <td>备注：</td>
                                <td>
                                    <textarea id="description" name="description" maxlength="200" rows="5" cols="60" >${mr.description}</textarea>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="command">
                                    <input type="hidden" value="${mr.roomid}" name="roomid">
                                    <#if currentuser?? && (currentuser.role==2)>
                                    <input type="submit" value="确认修改" class="clickbutton"/>
                                    </#if>
                                    <input type="button" class="clickbutton" value="返回" onclick="window.history.back();"/>
                                </td>
                            </tr>
                        </table>
                        </#if>
                    </fieldset>
                </form>
            </div>
        </div>
        <#include 'footer.ftl'>
    </body>
</html>